let str:string = 'sunyifeng'
let num:number = NaN

const syf:any = {
  shuai:'haoshuai',
  open: () => 123,
  father: {
    name: 'haha'
  }
}
interface Person {
  name:string,
  age:number,
  sex:string,
  [propName:string]:any
}
let a1:Person = {
  name:'string',
  age: 11,
  sex: 'nan'
}
let arr1:number[] = [1,2,3]
let arr2:object[] = [a1]
let arr3:any[] = [a1]
console.log(a1)
console.log(str)
function abc(a:number, b:number):number {
  return  a + b;
}
let promise1:Promise<any> = new Promise((resolve,reject)=>{
  resolve(a1);
  reject(a1);
})
abc(1,3)
